﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Blizzard.Contracts;

namespace Blizzard.Container
{
    class NewObjectContainer
    {


        private static List<IDataObject> innerList = new List<IDataObject>();


        internal static void ClearContainer()
        {
            innerList.Clear();
        }

        internal static void Add(IDataObject obj)
        {
            innerList.Add(obj);
        }


        internal static List<IDataObject> GetAllDataObjects()
        {
            return innerList;
        }


        internal static void RemoveFromContainer(IDataObject obj)
        {
            innerList.Remove(obj); 
        }

     

    }
  
}
